package com.etc.util;

import java.io.Serializable;

/**
 * 获取手机验证码发送状态，验证码的工具类
 */
public class Message implements Serializable {
    private Integer code;
    private String cod;
    private String msg;
    private Integer userstatus;

    public Message() {
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getCod() {
        return cod;
    }

    public void setCod(String cod) {
        this.cod = cod;
    }

    public Integer getUserstatus() {
        return userstatus;
    }

    public void setUserstatus(Integer userstatus) {
        this.userstatus = userstatus;
    }

    public Message(Integer code, String cod, String msg) {
        this.code = code;
        this.cod = cod;
        this.msg = msg;
    }

    public Message(Integer code, String cod, String msg, Integer userstatus) {
        this.code = code;
        this.cod = cod;
        this.msg = msg;
        this.userstatus = userstatus;
    }

    public Message(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "Message{" +
                "code=" + code +
                ", cod='" + cod + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
